package minjian.biz;

import java.util.LinkedHashMap;
import java.util.List;

import minjian.util.OrderBy;



public interface BaseBiz<T> {
	void addEntity(T t);

	void delete(String where, Object... params);

	void update(T t);

	public Integer count(String where, Object... params);

	List<T> getEntityAll();

	List<T> getAllByProperty(String where, Object params);
	List<T> getAllByProperty(String where1, Object params1,String where2, Object params2);
	List<T> getAllByProperty(LinkedHashMap<String, OrderBy> orderBy,String
	where,Object params);
	List<T> getAllByProperty(String string, Integer pageSize, String where,
			Object params);

	 List<T> getAllByProperty(LinkedHashMap<String, OrderBy> orderBy,Integer
	pageIndex,Integer pageSize,String where,Object params);

	T getEntityByProperty(String propName, Object value);
	T getEntityByProperty(String string, Object value1, String string2, Object value2);
	/**
	 * @param id
	 * @return
	 */
	/**
	 * @param comment
	 * @param user
	 */
}
